import allure

class Test_abc:
    @allure.testcase("http://www.baidu.com/", "登录成功")
    @allure.step(title="张三写的测试步骤001")
    def test_abc_001(self):
        allure.attach("自定义描述1", "我是测试用例001的描述")
        assert 1

    @allure.testcase("http://www.baidu.com/test_002", "登录失败002")
    def test_abc_002(self):
        print("002")
        assert 2

    # 严重级别
    @allure.severity(allure.severity_level.BLOCKER)
    def test_abc_003(self):
        print("003")
        assert 0

    # 测试用例
    @allure.testcase("http://www.baidu.com/test_004","登录失败")
    def test_abc_004(self):
        print("004")
        assert True